
<link href="${base}/css/Query.css" rel="stylesheet" type="text/css" />
<!-- dialog -->
<link rel="stylesheet" type="text/css" href="${base}/js/dialog/dialog.css">
<link rel="stylesheet" type="text/css" href="${base}/js/dialog/productdialog.css">
<SCRIPT type='text/javascript' src="${base}/js/dialog/dialog.js"></SCRIPT>

<script type="text/javascript">
	function addNewRole(){
		dialog("新增角色","iframe:${base}/go/addNewRole.action?control=新增","700px","550px","iframe");
	}
	function addSuccess(newBackUser){
		alert("操作成功");
		setTimeout(function(){window.location.href="backRoleManage.action";},900);
	}
	
	function editRole(roleid){
		dialog("编辑角色","iframe:${base}/go/editRole.action?&control=编辑&condition.id="+roleid,"700px","550px","iframe");
	}
	
	function delRole(roleid){
		if(confirm("确认要删除 【 "+j("#td_"+roleid).text()+" 】")){
			window.location.href="delRole.action?condition.id="+roleid;
		}
	}
</script>

<div class="container">
<div class="masage_tittle">角色查询</div><div class="clear"></div>
<form action="backRoleManage.action" method="post" id="searchForm">
<br>
<div class="">
<p class="sdamin_1">角色名:</p>
<input type="text" name="condition.name" class="Text_01" value="<#if condition?exists && condition.name?exists>${condition.name}</#if>"/>
<p>
<input type="submit" style="background: url('${base}/images/button/ls05.gif');width: 53px;height: 22px;cursor: pointer;" value="">
<input type="reset" style="background: url('${base}/images/button/ls06.gif');width: 53px;height: 22px;cursor: pointer;" value="" onclick="window.location.href='backRoleManage.action'">
</p>
</div><div class="clear"></div>
</form>
<div class="submenu">
<img src="${base}/images/button/xinzeng.gif" style="cursor: pointer;" onclick="addNewRole()">
<table class="tb tb2" border="0" cellpadding="0" cellspacing="1">
	<tr class="header" style="background-color:#e9f6ff;  color:#555555; font-weight:bold; height:24px; line-height:24px; text-align:center;">
		<th style="width:249px;"><b>操作</b></th>
		<th style="width:282px;"><b>编号</b></th>
		<th style="width:313px;"><b>角色名</b></th>
		<th style="width:313px;"><b>备注</b></th>
	</tr>
	<#if backroles?exists && backroles?size gt 0>
		<#list backroles as role>
		<tr style="height:24px; line-height:24px; text-align:center;" id="" onmouseover="this.style.background = '#CCFFFF'" onmouseout="this.style.background = 'white'">
			<td><a style="color:#2366a8;" onclick="editRole(${role.id?if_exists})">编辑 </a><a style="color:#2366a8;" href="javascript:delRole('${role.id}')">删除 </a><a style="color:#2366a8;" href="oneRoleRalationBackUsers.action?condition.id=${role.id}">用户</a></td>
			<td>${role.id?if_exists}</td>
			<td id="td_${role.id?if_exists}">${role.name?if_exists}</td>
			<td>${role.remark?if_exists}</td>
		</tr>
		</#list>
	</#if>
</table>
</div><div class="clear"></div>
<div class="clear"></div>

</div>
